package com.maixy.studyonlineapi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maixy.studyonlineapi.entity.Auth;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Classname AuthMapper
 * @Description TODO
 * @Date 2020/11/15 19:06
 * @Author by maixy
 */
@Mapper
public interface AuthMapper extends BaseMapper<Auth> {

    List<Auth> getAuthList(@Param("activityId") Long activityId, @Param("beginIndex") Integer beginIndex, @Param("pageSize") Integer pageSize);

    Integer getAuthNum(@Param("userId") Long userId);

    List<Auth> findAuthByTeacherIdAndStudentId(@Param("teacherId") Long teacherId, @Param("studentId") Long studentId);
}
